/**
 * Created by lly on 2019/10/27.
 * 用户相关api
 */
import * as API from './'

export default {

  //查询获取game列表(通过page分页)
  findList: params => {
    return API.GET('/game/index', params)
  },
  //查询获取类型列表
  findTypeList: params => {
    return API.GET('/game/typeList')
  },
  add: params => {
    return API.POST(`/game/addGame`, params)
  },
  remove: id => {
    return API.GET(`/game/deleteGame/${id}`)
  },
  update: (id, params) => {
    return API.POST(`/game/updateGame/${id}`, params)
  },
  findById: id => {
    return API.GET(`/game/detailGame/${id}`)
  },
}
